home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 June / MacFormat 25.iso / Shareware City / Developers / OutOfPhase1.1 Source / OutOfPhase Folder / CalculatorWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-28  |  2.3 KB  |  78 lines  |  [TEXT/KAHL]

  1. /* CalculatorWindow.h */
  2.  
  3. #ifndef Included_CalculatorWindow_h
  4. #define Included_CalculatorWindow_h
  5.  
  6. /* CalculatorWindow module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Screen */
  12. /* TextEdit */
  13. /* EventLoop */
  14. /* Menus */
  15. /* WindowDispatcher */
  16. /* Memory */
  17. /* MainWindowStuff */
  18. /* GrowIcon */
  19. /* Main */
  20. /* SimpleButton */
  21. /* Alert */
  22. /* CodeCenter */
  23. /* PcodeStack */
  24. /* PcodeSystem */
  25. /* DataMunging */
  26. /* Numbers */
  27. /* FixedPoint */
  28. /* GlobalWindowMenuList */
  29. /* FunctionCode */
  30. /* CompilerRoot */
  31. /* PcodeDisassembly */
  32. /* DisassemblyWindow */
  33. /* FindDialog */
  34.  
  35. #include "Screen.h"
  36. #include "EventLoop.h"
  37. #include "Menus.h"
  38.  
  39. struct CalcWindowRec;
  40. typedef struct CalcWindowRec CalcWindowRec;
  41.  
  42. /* forward declarations */
  43. struct CodeCenterRec;
  44. struct MainWindowRec;
  45.  
  46.  
  47. /* create a new calculator window.  the caller is responsible for registering the */
  48. /* new calculator with the main window. */
  49. CalcWindowRec*            NewCalculatorWindow(struct MainWindowRec* MainWindow,
  50.                                             struct CodeCenterRec* CodeCenter);
  51.  
  52. /* dispose of a calculator window.  the calculator notifies the main window that */
  53. /* owns it. */
  54. void                                DisposeCalculatorWindow(CalcWindowRec* Window);
  55.  
  56. /* event handling routines for the calculator */
  57. void                                CalculatorWindowDoIdle(CalcWindowRec* Window,
  58.                                             MyBoolean CheckCursorFlag, OrdType XLoc, OrdType YLoc,
  59.                                             ModifierFlags Modifiers);
  60. void                                CalculatorWindowBecomeActive(CalcWindowRec* Window);
  61. void                                CalculatorWindowBecomeInactive(CalcWindowRec* Window);
  62. void                                CalculatorWindowJustResized(CalcWindowRec* Window);
  63. void                                CalculatorWindowDoMouseDown(OrdType XLoc, OrdType YLoc,
  64.                                             ModifierFlags Modifiers, CalcWindowRec* Window);
  65. void                                CalculatorWindowDoKeyDown(unsigned char KeyCode,
  66.                                             ModifierFlags Modifiers, CalcWindowRec* Window);
  67. void                                CalculatorWindowClose(CalcWindowRec* Window);
  68. void                                CalculatorWindowUpdator(CalcWindowRec* Window);
  69. void                                CalculatorWindowMenuSetup(CalcWindowRec* Window);
  70. void                                CalculatorWindowDoMenuCommand(CalcWindowRec* Window,
  71.                                             MenuItemType* MenuItem);
  72.  
  73. /* perform evaluation.  if there is a selection, then evaluate */
  74. /* the selection, otherwise evaluate from last point */
  75. void                                CalculatorWindowDoCalculation(CalcWindowRec* Window);
  76.  
  77. #endif
  78.